//
//  Extension+UILabel.swift
//  weibo
//
//  Created by 张城 on 16/7/23.
//  Copyright © 2016年 张城. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(textColor: UIColor , textFont: CGFloat, maxWidth: CGFloat = 0){
        self.init()
        
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textFont)
        if maxWidth > 0 {
            self.preferredMaxLayoutWidth = maxWidth
            self.numberOfLines = 0
        }
    }
    
    
    
}